xl: fixup command line handling for several commands.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 29 Sep 2011 14:40:34 +0000 (15:40 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 29 Sep 2011 14:40:34 +0000 (15:40 +0100)
commit0c49cf7d494fc4e9b54a1d7a6ed03a09c01c3eae
tree97ca889f2c7ed463543aefa790bf871240ff89aa
parent1801856c4be69f0cc5f3f02f6087b113aa4ecdb0
xl: fixup command line handling for several commands.

def_getopt already checks for a minimum number of arguments for us.

"xl save" simply need to use the correct argument for that value,
contrary to the change I made in 23876:b113d626cfaf

"xl block-list" does not need to check for at least 2 arguments, since
it's already been done by def_getopt.

"xl network-list" would previous accept zero arguments and just print
the table header. Insist on a domain argument.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c